//引入路由对象
import { createRouter, createWebHistory, } from 'vue-router'
import type { RouteRecordRaw } from 'vue-router'

const routes: RouteRecordRaw[] = [
    {
        path: '/',
        redirect: '/login',
        meta: {
            title: '登录'
        }
    },
    {
        path: '/login',
        name: 'login',
        component: () => import('../../pages/login.vue'),
        meta: {
            title: '登录'
        }
    }
]
const router = createRouter({
    history: createWebHistory(),
    routes: routes
})
export default router